package CSS::Builder::Selector::Id;
use Moose;

with 'CSS::Builder::Roles::List';

# H1#chapter1 { text-align: center }
has 'prop_id'          => ( isa => 'Any' , is => 'rw'); 

sub css {
      my $self = shift;
      
      my $selectors = $self->list;
      my $c = $self->docss($selectors->[0]);
      
      return '#' . $self->prop_id . ($c ? $c : '');
}




1;